package Test.Day10;

public class ArrSum {
    public static void main(String[] args) {
        int[] arr = {171, 72, 19, 16, 118, 51, 210, 7, 18};
        int sum = 0;
        for (int j = 0;j<arr.length;j++) {
            //能被2整除  个位和十位不能有7
            if (arr[j] % 2 == 0 && arr[j] / 10 % 10 != 7 && arr[j] % 100 / 10 != 7) {
                sum += arr[j];
                System.out.println(sum);
            }
        }
    }
}
